<?php
/**
 * The default template for displaying content
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */
?>

<?php
global $images_meta_key,$query,$description_value;
$curr_post_ID = $wp_query->post->ID;
$upload_dir = wp_upload_dir(); 
$upload_url = $upload_dir['baseurl'];

$file_url = get_post_meta($curr_post_ID,$images_meta_key,true); 
$description = get_post_meta($curr_post_ID,$description_value,true); 
$attr_file_url = $upload_url . $file_url; 
$product_name = $query->post->post_title;
if( !$product_name ){
$product_name = get_the_title();
}
$product_name = $product_name . '&nbsp;' . $description;
?>
         
<li class="product-item">
<?php if(is_category()){?>
<p class="checkbox"><input name="chkproductids" title="<?php echo $product_name ;?>"  value="<?php echo $curr_post_ID;?>" type="checkbox"></p>
<?php } ?>
<a href="<?php echo the_permalink(); ?>">
<div class="img"><img src="<?php echo $attr_file_url; ?>" alt="<?php echo $product_name ;?>"  title="<?php echo $product_name ;?>" /></div>
<h4><?php
echo $product_name;
?>
</h4>
</a>


</li>

